<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      
      xmlns:c="http://java.sun.com/jsp/jstl/core">
        <ui:composition>
            <h:form id="searchBar">
                <f:view locale="#{locale.locale}" >
                    <p:inputText  id="search"  value="#{searchBean.searchWord}" style="width: 215px; position: relative; top:-2px;" ></p:inputText>
                    <p:watermark for="search" value="#{trans.search}..." /> 
                    <p:commandButton  icon="ui-icon-search"  action="#{searchBean.search()}" style="height: 26px; width: 30px; margin-left: 5px;" title="#{trans.search}" ajax="false">
                        <f:setPropertyActionListener target="#{schoolmat.selectedSchoolMat}" value="#{schoolmat.pickSearchwordMats(searchBean.searchWord)}" />
                  
                    </p:commandButton>

              
                    <br />
                    <h:link value="#{trans.adv_search}" style="text-align: right; font-size: 90%; margin-right: 7px;" outcome="advSearch" ></h:link>

                </f:view>
            </h:form>
        </ui:composition>
</html>

